package tmproject.hlhj.fhp.cartrans.http

import java.text.DecimalFormat

object NumUtil {

    fun formatNum(num:Float,p0:Int): String? {
        var fo="0."
        for(i in 0..p0-1){
           fo=fo+"0"
        }
        val decimalFormat = DecimalFormat(fo)
        val format = decimalFormat.format(num)
        return format
    }
}